<template>
	<view class="content">
		
	</view>
</template>

<script>
export default {
	data() {
		return {
			
		};
	},
	onLoad() {
		
		this.getInfo()
	},
	methods: {
		getInfo(){
			let _this = this
			_this.$http('index/initLogin').then(res=>{
				if(res.code){
					let app_info = uni.getSystemInfoSync()
					// #ifdef MP-WEIXIN
					if (app_info.hostName == 'WeChat') { //小程序
						uni.reLaunch({
							url:'/pages/shop/index/index'
						})
					} else if (app_info.hostName == 'wxwork') { //企业微信
						uni.reLaunch({
							url:'/pages/work/index/index'
						})
					}
					// #endif
				}
			})
		}
	}
};
</script>

<style lang="scss" scoped>

</style>
